<?php
if($act=="delfilter")
{
	//delete childs:
	$sql_delete = "DELETE FROM tblproduct_filter WHERE iParentId = $id ";
	$dbsql->query($sql_delete);
	
	//delete filter:
	$sql_delete = "DELETE FROM tblproduct_filter WHERE iId = $id ";
	$dbsql->query($sql_delete);
	
	$msg = "Delete Filter Success!";
	$page = "?opt=filter&idP=$idP";	
	page_transfer($msg,$page);
	exit;
}
$category	= LoadCategoryById($idP);
$filters	= ListPropertyFilter($idP);
?>
